<?php
	abstract class _init_model extends CI_Model{
		protected $tableName;

		function db(){
			return $this->db;
		}
		function __init_model(){
			parent::__construct();
		}
		
		function get_count(){
			
			$count = $this->db->count_all($this->tableName);
			return $count;
		}
	}
?>